package com.glens.jksdxz;

import androidx.appcompat.app.AppCompatActivity;

import android.os.Bundle;
import android.widget.ListView;

import com.glens.jksdxz.adapter.ListItemAdapter;
import com.zhiteng.base.activity.BaseActivity;

import java.util.ArrayList;
import java.util.List;

import butterknife.BindView;
import butterknife.ButterKnife;

public class MainActivity extends BaseActivity {
    @BindView(R.id.listview)
    ListView listView;


    ListItemAdapter adapter;


    @Override
    public void loadNetData() {

    }

    @Override
    public void loadLocalData() {
        List<String> list = new ArrayList<>();
        for (int i = 0; i < 10; i++) {
            list.add(i + "");
        }
        adapter = new ListItemAdapter(this, list, R.layout.list_item_model);
        listView.setAdapter(adapter);
    }

    @Override
    protected int getLayoutId() {
        return R.layout.activity_main;
    }


}